import request from '@/utils/request'

// 搜索条件中的所属科室查询
export function getDepartmentOptions() {
    return request({
        url: '/med-admin-medical-management/doctor/getDepartmentOptions',
        method: 'get'
    })
}

// 查询医生列表
export function getDoctorList(params) {
    return request({
        url: '/med-admin-medical-management/doctor/getDoctorList',
        method: 'get',
        params
    })
}

// 更新医生的状态
export function updateDoctorStatus(doctorId,adminId) {
    return request({
        url: '/med-admin-medical-management/doctor/updateDoctorStatus/' + doctorId + '/' + adminId,
        method: 'put',
    })
}

// 删除医生
export function deleteDoctor(doctorId) {
    return request({
        url: '/med-admin-medical-management/doctor/deleteDoctor/' + doctorId,
        method: 'delete',
    })
}

// 新增医生
export function addDoctor(data) {
    return request({
        url: '/med-admin-medical-management/doctor/addDoctor',
        method: 'post',
        data
    })
}

// 修改医生
export function updateDoctor(data) {
    return request({
        url: '/med-admin-medical-management/doctor/updateDoctor',
        method: 'post',
        data
    })
}
